package com.bdqn.hospital.service.impl;

import com.bdqn.hospital.mapper.ChargeRecordsMapper;
import com.bdqn.hospital.pojo.ChargeRecords;
import com.bdqn.hospital.service.ChargeRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version : 1.0
 * @Author :guogd
 * @createTime: 2023/03/01 14:52
 * @Description: com.bdqn.hospital.service.impl
 */
@Service
public class ChargeRecordsServiceImpl implements ChargeRecordsService {
    /**
     * 收费记录Service
     * */
    @Autowired
    private ChargeRecordsMapper chargeRecordsMapper;

    /**
     * 获取全部收费记录
     * @return
     */
    @Override
    public List<ChargeRecords> getAllChargeRecords() {
        return chargeRecordsMapper.getAllChargeRecords();
    }

    /**
     * 添加收费记录
     * @param chargeRecords
     * @return
     */
    @Override
    public Integer addRecord(ChargeRecords chargeRecords) {
        return chargeRecordsMapper.addRecord(chargeRecords);
    }

}
